﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Threading;
using System.Windows.Media.Imaging;

using System.IO.IsolatedStorage;
using System.IO;
using System.Text;
using System.Windows.Media.Effects;


namespace GameEngine.Weather
{
    public class SnowEffect : WeatherEffect
    {

        /// <summary>
        ///     Creates new snow effect.
        /// </summary>
        /// <param name="numberOfParticles">Number of snowflakes to use.</param>
        /// <param name="mapSize">Size of the whole map.</param>
        public SnowEffect(int numberOfParticles, IntSize mapSize, int windStrength): base(numberOfParticles, mapSize, windStrength)
        {
            Image temp = new Image();
            temp.Visibility = Visibility.Collapsed;
            (GameEngine.App.Current.RootVisual as MainPage).LayoutRoot.Children.Add(temp);
            temp.ImageOpened += new EventHandler<RoutedEventArgs>(_weatherParticle_ImageOpened);

            temp.Source = new BitmapImage(new Uri("Weather/Particles/snowflake3.png", UriKind.RelativeOrAbsolute));
        }
    }
}
